package com.xiansiblog.service;

import com.xiansiblog.entity.Type;

import java.util.List;

public interface TypeService {
    int saveType(Type type);

    Type getType(Long id);

    List<Type> getAllType();

    List<Type>getAllTypeAndBlog();

    Type getTypeByName(String name);

    int updateType(Type type);

    void deleteType(Long id);
}
